﻿@model IEnumerable<MVCWebAPI.Models.FinancialView>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.included)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.payer)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.receiver)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.costs)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.transferred)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tGroup)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.bill)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.transfer_type)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.comments)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.remittance)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.created)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.balance)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.included)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.payer)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.receiver)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.costs)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.transferred)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tGroup)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bill)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.transfer_type)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.comments)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.remittance)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.created)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.balance)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
            @Html.ActionLink("Details", "Details", new { id=item.id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
    </tr>
}

</table>
